package businessEntities;

import java.util.ArrayList;
import java.util.List;

/**
 *  Container for information_schema.TABLES
 *  Represents list of pairs - TABLE_SCHEMA , TABLE_NAME columns
 *  Table-Tables[i] belongs to Database-DBs[i]
 **/
public class DBInformationContainer {

    private final List<String> databases = new ArrayList<>();
    private final List<String> tables = new ArrayList<>();

    public void addRow(String Db, String table) {
        databases.add(Db);
        tables.add(table);
    }

    public List<String> getDbsCopy() {
        return new ArrayList<>(databases);
    }

    public List<String> getTablesCopy() {
        return new ArrayList<>(tables);
    }
}
